package cn.kickegg.cluster.provider;

import com.github.yitter.contract.IdGeneratorOptions;
import com.github.yitter.idgen.YitIdHelper;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author chenkai
 * @createTime 2024/1/8 11:51
 * @description
 * @keyPoint
 */
@SpringBootApplication
@EnableDubbo
public class ProviderApplication {

    public static void main(String[] args) {

        SpringApplication.run(ProviderApplication.class, args);

        IdGeneratorOptions options = new IdGeneratorOptions((short) 1);
//        options.SeqBitLength = 8;
        YitIdHelper.setIdGenerator(options);
    }
}
